﻿using System;
using com.fukefu.source;

namespace com.fukefu.info.b2b.auto
{
    public class JinTi : Information
    {

        public override bool Login(string name, string pass, string vcode)
        {
            ParametersData pd = new ParametersData();
            pd.Add("submit", "submit");
            pd.Add("action", "login");
            pd.Add("email", name);
            pd.Add("password", pass);
            pd.Add("x", "21");
            pd.Add("y", "38");
            string html = source.Post("http://www.jinti.com/members/loginandreg.asp?reurl=http%3A%2F%2Fwww%2Ejinti%2Ecom%2Fmembers%2Fmanage%2Easp", pd.Read());
            html = source.Get("http://www.jinti.com/members/top_welcome_utf8.asp");
            if (html.IndexOf(">退出</a></td>") != -1)
            {
                return true;
            }
            return false;
        }

        public override InformationResult PostArticle(string title, string content, string vcode)
        {
            throw new NotImplementedException();
        }
    }
}
